<!-- 继承模板 -->
{%extends "base.html" %}

<!-- css 样式 -->
{% block css%}
#add {
    margin:20px 20px;
}

{% endblock %}

<!-- 内容 -->
{% block content %}
<!-- 添加爬虫 -->
<div id="add">
    {% if form.errors %}
    <p style="color: red;">
    Please correct the error{{ form.errors|pluralize }} below.
    </p>
    {% endif %}

    <form action="" method="post">
        <table>
            {{ form.as_table }}
        </table>
        {% csrf_token %}
        <input type="submit" value="Submit">
    </form>    
</div>

{% endblock %}